<template>
    <el-container class="w-full">
        <el-header><h1>新增课程</h1></el-header>
        <el-container>
            <el-main>
                <course-create-form @complete="createCourseSuccess"/>
            </el-main>

        </el-container>

    </el-container>
</template>

<script>
    import CourseCreateForm from "../components/CourseCreateForm";

    export default {
        components: {CourseCreateForm}, methods: {
            createCourseSuccess() {
                this.$message.success('成功添加职业');
                this.$router.push({name: 'course-index', params: {}})
            }
        }
    }
</script>

<style scoped>

</style>